// retrieve and display spotify link
	
var album = $('#cd_info ol li:first a').dataset('album');

$.ajax({
	url: "http://tastemakersmag.com/wp-content/themes/tays-t/ajax/spotify_link.php",
	type: "POST",
	data: 'album='+album,
	dataType: "html",
	async: false,
	success: function(link) {
		if (link) {
			$('#cd_info h2').after('<img src="http://tastemakersmag.com/wp-content/themes/tays-t/images/spotify_favicon.png"> <a href="'+link+'">Open album in Spotify</a>');
		}
	}
});